import request from '@/utils/request'

export function saveComment(comment) {
    return request({
        url: `/course/comment/saveComment`,
        method: 'put',
        params: { ...comment }
    })
}

export function pageComment(current, limit, courseId) {
    return request({
        url: `/course/comment/pageComment/${current}/${limit}/${courseId}`,
        method: 'get',
    })
}